import Vue from 'vue';
import Router from 'vue-router';
import Home from '../view/Home.vue'
import Book from '../view/Book.vue'
import Movie from '../view/Movie.vue'
import About from '../view/About.vue'
import Statistics from '../view/Statistics.vue'
import Register from '../view/Register.vue'
import Login from '../view/Login.vue'
import SearchResult from '../view/SearchResult.vue'
import Info from '../view/Info.vue'
import Person from '../components/person.vue'
import Passwd from '../view/Passwd.vue'
Vue.use(Router);
export default new Router({
	// linkActiveClass: 'active',
	// mode:'history',
	routes: [{
			path: '/',
			name: 'home',
			component: Home
		},
		{
			path: '/book/',
			name: 'book',
			component: Book
		},
		{
			path: '/movie/',
			name: 'movie',
			component: Movie
		},
		{
			path: '/about/',
			name: 'about',
			component: About
		},
		{
			path: '/statistics/',
			name: 'statistics',
			component: Statistics
		},
		{
			path: '/register/',
			name: 'register',
			component: Register
		},
		{
			path: '/login/',
			name: 'login',
			component: Login
		},
		{
			path: '/searchresult/',
			name: 'searchresult',
			component: SearchResult,
		},
		{
			path: '/info/',
			name: 'Info',
			component: Info,
		},
		{
			path: '/person/',
			name: 'person',
			component: Person
		},
		{
			path: '/passwd',
			name: 'password',
			component: Passwd
		}

	]
});
